package ltd.dujiabao.eduservice.client;

import ltd.dujiabao.commonutils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author : DuJiabao
 * @Project : online-course-project
 * @Time : 2021/4/23 15:18
 * @Desc :  用于与另一个服务 service-vod 通信的客户端的接口
 */
@Component
@FeignClient(name = "service-vod", fallback = VodFileDegradeFeignClient.class)
public interface VodClient {
  /**
   * 删除视频点播的内容 通过远程服务
   *
   * @param videoIds 以id拼凑出来的字符串，以`,`分割
   * @return
   */
  @DeleteMapping("/eduvod/video/{videoId}")
  public Result removeVideo(@PathVariable("videoId") String videoIds);
}
